package com.competition.front.service.impl;

import com.competition.front.entity.CourseVideo;
import com.competition.front.entity.vo.QueryVo;
import com.competition.front.entity.vo.VideoInfo;
import com.competition.front.mapper.CourseVideoMapper;
import com.competition.front.service.CourseVideoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author testjava
 * @since 2021-04-05
 */
@Service
public class CourseVideoServiceImpl extends ServiceImpl<CourseVideoMapper, CourseVideo> implements CourseVideoService {

    @Override
    public int getCourseVideoCount(QueryVo queryVo) {
        return baseMapper.selectVideoCount(queryVo);
    }

    @Override
    public List<VideoInfo> getCourseVideoList(QueryVo queryVo) {
        return baseMapper.selectVideoList(queryVo);
    }
}
